package com.gitee.shoes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author LYH
 * @since 2020-12-13
 */
@Data
@Accessors(chain = true)
@TableName("pms_product_sold_record")
public class ProductSoldRecord {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 对应平台
     */
    @TableField("productId")
    private Long productId;

    /**
     * 尺码
     */
    private String size;

    /**
     * 成交时间
     */
    @TableField("transTime")
    @JsonIgnore
    private LocalDateTime transTime;

    /**
     * id
     */
    @TableField("recordId")
    private String recordId;

    /**
     * 成交价格
     */
    private Long price;

    @TableField(exist = false)
    private String transTimeFormat;

    @TableField(exist = false)
    private String platformName;

}
